package cn.jkgly.wxImg.service.impl;


import cn.jkgly.wxImg.entity.WxImg;
import cn.jkgly.wxImg.mapper.WxImgMapper;
import cn.jkgly.wxImg.service.IWxImgService;
import cn.jkgly.wxUser.entity.WxUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 微信图片路径存储
 * @Author: jeecg-boot
 * @Date:   2020-04-21
 * @Version: V1.0
 */
@Service
public class WxImgServiceImpl extends ServiceImpl<WxImgMapper, WxImg> implements IWxImgService {
    public boolean getUserBoolean(String openid,String type){
        QueryWrapper<WxImg> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("openid",openid).eq("type",type);
        WxImg wxImg =getOne(queryWrapper);
        if (wxImg!=null){
            return true;
        }
        return false;
    }
}
